package com.service.impl;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

import com.dao.GoodsDao;
import com.service.GoodsService;

public class GoodsServiceImpl implements GoodsService {
	private GoodsDao goodsDao;

	public GoodsDao getGoodsDao() {
		return goodsDao;
	}

	public void setGoodsDao(GoodsDao goodsDao) {
		this.goodsDao = goodsDao;
	}

	@Override
	public List<String> findNewGoods() throws Exception {
		goodsDao.findNewGoods();
		return null;
	}

	@Override
	public List<String> findHotGoods() throws Exception {
		goodsDao.findHotGoods();
		return null;
	}

	@Override
	public List<String> findGoodsByCid(int cid, int currentPage) {
		goodsDao.finGoodsByCid(cid);
		return null;
	}

	@Override
	public String findGoodsById(int gid) {
		goodsDao.finGoodsById(gid);
		return null;
	}
}
